Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CLI and pyproject file #9

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

jakubvalenta
Copy link

Motivation

Provide a convenient CLI to convert a FIT file to GPX.

Resolves: #6

Changes

  • Add a pyproject file (a modern alternative to setup.py), so that this package can be installed using pip. I tried to copy the contents from the setup.py found in this archive: https://codeload.github.com/dodo-saba/fit2gpx/tar.gz/refs/tags/v0.0.7
  • Configures the pip package to expose the cli() function as a fit2gpx command.
  • Make fit_to_dataframes() and fit_to_gpx() work with not only file paths but also file descriptors, so that the CLI can operate on stdin and stdout.
  • Sort imports a clean up whitespace.

Testing

pip install --user --upgrade .
fit2gpx 3323369944.fit 3323369944.gpx

@vortigont
Copy link

Any chance to get this merged? Pleeease?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a CLI
2 participants